package com.space.product.assembler;

import com.space.client.dto.ProductInfoDTO;
import com.space.product.converter.ShareMapperConfig;
import com.space.product.domain.info.entity.ProductInfo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * use Mapstruct
 */
@Mapper(config = ShareMapperConfig.class)
public interface ProductInfoAssembler {
    @Mappings({
            @Mapping(source = "productId.id", target = "id"),
    })
    ProductInfoDTO toDTO(ProductInfo productInfo);
}
